package com.cxria.problem.enums

enum StatusMsgEnum {

	NORMAL('send success'),
	USER_NOT_LOGIN('user not login'),
	USER_ROLE_ERROR('user role error'),
	USER_AUTHORITY_ERROR('user authority error'),
	USER_INCORRECT_CREDENTIALS_ERROR('user incorrect credentials error'),
	USER_IS_NOT_DELETE('user is not delete'),
	ROLE_IS_NOT_DELETE('role is not delete'),
	DATA_ALREADY_EXISTS_ERROR('data already exists error'),
	DATA_SAVE_ERROR('data save error'),
	DATA_VIOLATION_ERROR('data violation error'),
	UNKNOWN_ERROR('unkunwn error')

	String str

	StatusMsgEnum(String str) {
		this.str = str
	}

	@Override
	String toString() {
		return String.valueOf(this.str)
	}

}
